﻿using Artech.Common;
using Artech.Core.Caching;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;

namespace Artech.Core.Resources
{
    public interface IResourceProvider: ICacheableProvider<IEnumerable<StringResourceItem>>
    {
        bool TryGetString(string category, string name,  CultureInfo culture, out string value);

        StatefulEntryCollection<StringResourceEntry> GetStringsForEdit(StringResourceSearchCriteria criteria, int pageSize, int pageIndex, ResourceEntryField orderBy, SortDirection sortDirection);
        void UpdateStrings(StatefulEntryCollection<StringResourceEntry> resourceEntries);
    }
}